%%%-------------------------------------------------------------------
%%% @author Rain
%%% @doc 网页相关的定义
%%% @end
%%%-------------------------------------------------------------------
-author("Rain").

-ifndef(GAME_UTIL_WEB_HRL).
-define(GAME_UTIL_WEB_HRL, true).

-define(DEFAULT_HTTP_TIMEOUT, 10000).                   %% http请求默认超时时间

%% NOTE: http选项的定义请使用全小写以兼容http2的选项名称
-define(HTTP_OPTION_CONTENT_TYPE, <<"content-type">>).      %% http选项 - content-type
-define(HTTP_OPTION_ACCESS_CONTROL_ALLOW_ORIGIN, <<"access-control-allow-origin">>).
-define(HTTP_OPTION_ACCESS_CONTROL_ALLOW_METHODS, <<"access-control-allow-methods">>).
-define(HTTP_OPTION_ACCESS_CONTROL_ALLOW_HEADERS, <<"access-control-allow-headers">>).
-define(HTTP_CONTENT_TYPE_JSON, <<"application/json">>).       %% http-post类型json

-endif.